package com.healthcarex.hip.saas.common.model;

import java.util.List;
import javax.persistence.Column;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author chenpan
 * @ClassName: Tree
 * description:
 * @date 2018-05-15 10:17
 */
@Data
public class Tree<T extends Tree> extends BaseModel {

    @Transient
    private List<T> children;

    @Column(name = "PARENT_ID")
    @ApiModelProperty(value = "父ID")
    private Integer parentId;
}
